package com.feizi.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.feizi.entity.AddressEntity;
import com.feizi.entity.OrderdetailEntity;
import com.feizi.entity.OrderinfoEntity;
import com.feizi.entity.ShopcartEntity;
import com.feizi.mapper.AddressMapper;
import com.feizi.mapper.OrderMapper;
import com.feizi.mapper.ShopcartMapper;
import com.feizi.service.AddressService;
import com.feizi.service.OrderService;
import com.feizi.service.ShopcartService;

@Service
public class AddressServiceImpl implements AddressService{
	
	@Autowired
	private AddressMapper addressMapper;

	@Override
	public List<AddressEntity> findAddress(int uid) {
		// TODO Auto-generated method stub
		return addressMapper.findAddress(uid);
	}

	@Override
	public int addAddress(AddressEntity ae) {
		// TODO Auto-generated method stub
		return addressMapper.addAddress(ae);
	}

	@Override
	public int upAddress(AddressEntity ae) {
		// TODO Auto-generated method stub
		return addressMapper.upAddress(ae);
	}

	@Override
	public int delAddress(int id) {
		// TODO Auto-generated method stub
		return addressMapper.delAddress(id);
	}

	@Override
	public AddressEntity findOrAddress(int id) {
		// TODO Auto-generated method stub
		return addressMapper.findOrAddress(id);
	}

}
